home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / gt12.arc / GT12.DOC < prev   
Text File  |  1985-09-07  |  25KB  |  470 lines

  1.  
  2.                              Generic Terminal
  3.                   Copyright (c) 1985 by P & M Software Co.
  4.                               August 18, 1985
  5.  
  6.  
  7.     GT is short for Generic Terminal,  a communications program for IBM
  8.     Personal Computers and compatible units.   P & M Software Co.
  9.     reserves the COPYRIGHT to this program and all related materials.
  10.     The user is granted a license to use the program and is encouraged
  11.     to make a donation if the program is found to be useful.  $20 is
  12.     recommended.  Send the donations to:
  13.  
  14.                            P & M Software Company
  15.                            9350 Country Creek #30
  16.                            Houston, Texas 77036
  17.  
  18.     In addition, the user is granted the right to make unlimited copies
  19.     of the program and to distribute these copies as he/she desires,
  20.     except that P & M Software Co. reserves the sole right to distribute
  21.     the program for profit.  If the user distributes the product, the
  22.     user may ask for a duplication charge, not to exceed $5 per copy.
  23.  
  24.  
  25.     Features:
  26.  
  27.        1. ANSI standard terminal emulation.
  28.        2. ANSI.SYS style color graphics.
  29.        3. BASIC style PLAY for single voice music.
  30.        4. Telephone directory, with up to 999 entries.
  31.        5. File capture, limited ONLY by the amount of available
  32.           memory.
  33.        6. ASCII file transmission, using XON/XOFF protocol.
  34.        7. Full control of all communication parameters.
  35.        8. 40 macro keys, to store logon, passwords, etc.
  36.        9. Printer support, using XON/XOFF flow control.
  37.       10. Xmodem CRC protocol, using the CCITT polynomial:
  38.                                     x^16 + x^12 + x^5 + 1.
  39.       11. TELINK batch file transfer protocol is supported.
  40.  
  41.  
  42.     Most of the features of the program are self-documenting, however
  43.     for the sake of the novice user, some explanation is necessary.
  44.  
  45.        The program is distributed in .COM, which can be executed
  46.        immediately by placing your disk into drive A, changing the
  47.        default drive to A, if not already, then typing the name of the
  48.        program, GT.
  49.  
  50.        Once the user has successfully executed the program, the copy-
  51.        right notice will appear, and the user will be asked if music is
  52.        wanted, strike a "y" if you want music, if not, then strike any
  53.        other key.  The on-line screen will then appear.  At the bottom
  54.        of the online screen appears a reminder of the most frequently
  55.        used commands.  These commands may be selected by depressing and
  56.        holding the ALT key along with the indicated ALPHA key.  If the
  57.        user needs a command that does not appear on the screen, a
  58.        complete list of available commands can be obtained by selecting
  59.        ALT-H.  Commands may be selected while the HELP screen is still
  60.        on screen, so that the user does not need to call up the HELP
  61.        screen repetitively.  Here is a brief description of each
  62.        command:
  63.  
  64.        ALT-A .... Transmit a file using the ASCII XON/XOFF protocol,
  65.                   where the DC1 character is used for XON and the DC3
  66.                   character is used for XOFF.
  67.  
  68.        ALT-B .... Send BREAK signal to host computer.  The serial port
  69.                   is forced into the spacing state.
  70.  
  71.        ALT-C .... Turn capture mode ON if it is OFF, or OFF if it is ON.
  72.                   When this mode is turned OFF, either thru the ALT-C
  73.                   command or with the ALT-T command, the user will be
  74.                   prompted for a file name wherein to save the contents
  75.                   of the capture buffer.  During capture mode
  76.                   operations, a '*' or 'W' will appear in the lower left
  77.                   corner of the screen.  The '*' reminds the user that
  78.                   capture mode is ON, the 'W' warns the user that memory
  79.                   space is short.  Capture mode will make use of all
  80.                   available memory.  Capture mode is useful for
  81.                   recording complete sessions for review later, so you
  82.                   don't read so much on those long distance phone calls.
  83.  
  84.        ALT-D .... Modem dialing and phone directory management.  The
  85.                   phone directory may have up to 999 entries, if there
  86.                   is enough disk space.  The directory screen will
  87.                   automatically disappear whenever carrier is detected,
  88.                   unless the Forced Carrier config param is "TRUE".
  89.  
  90.        ALT-E .... Turn Half Duplex ON if it is OFF, or OFF if it is on.
  91.                   If Half Duplex is ON, then a 'H' will appear in the
  92.                   lower right corner of the screen to remind the user.
  93.  
  94.        ALT-F .... Fix time.  That is, mark the current time, so that you
  95.                   can measure time used, with the ALT-U command.
  96.  
  97.        ALT-G .... Redial the last number dialed.  This command will loop
  98.                   continuously until carrier is signaled by the modem,
  99.                   the Forced Carrier config param is 'TRUE', or the user
  100.                   presses a key.
  101.  
  102.        ALT-H .... Produces the HELP screen for the user.
  103.  
  104.        ALT-I .... Reconfigure the program defaults, without exiting to
  105.                   DOS.  The parameters listed below for the .CNF file
  106.                   can be changed via this command.
  107.  
  108.        ALT-J .... Display version number of GT in use.
  109.  
  110.        ALT-K .... Kill a file.  Delete a file from the disk.
  111.  
  112.        ALT-L .... Display disk directory, under a user supplied mask.
  113.                   For example, to see all files on the logged drive and
  114.                   current directory, the user would enter the mask
  115.                   "*.*", when prompted.   Or see just the files with an
  116.                   extension of .PAS by entering the mask "*.pas", when
  117.                   prompted.
  118.  
  119.        ALT-M .... Macro key management.  Allows the user to define the
  120.                   contents of the function keys F1 thru F10, and all
  121.                   combinations of the function keys and shift, Ctrl or
  122.                   Alt.  This gives the user 40 different macro keys.
  123.  
  124.        ALT-N .... Allows the user to change to a new logged drive and/or
  125.                   new current directory.
  126.  
  127.        ALT-O .... Sort the dialing directory into ascending sequence by
  128.                   name or number.  Performs a IN MEMORY sort, so there
  129.                   must be enough memory to hold all the phone directory
  130.                   entries.
  131.  
  132.        ALT-P .... Print a file.
  133.  
  134.        ALT-Q .... Hang-up the phone line, put the modem "ON HOOK".
  135.                   Drops the terminal ready signal to the modem for 3
  136.                   seconds and resets the UART.
  137.  
  138.        ALT-R .... Receive a file using Xmodem protocol.  Communications
  139.                   parameters are automatically changed to/from 8 bit no
  140.                   parity.  CRC is used automatically, if the remote
  141.                   system supports it.  In addition, the TELINK batch
  142.                   protocol may be used, in order to invoke this proto-
  143.                   col, the user must first prepare the Host cpu to use
  144.                   the TELINK protocol, then after the ALT-R key has been
  145.                   pressed and GT has requested the filename, the user
  146.                   should respond with:  [d:]*   the [] indicates that
  147.                   the drive specifier is optional.  Under the TELINK
  148.                   protocol, the filenames will be supplied by the Host
  149.                   cpu.  Using TELINK preserves the exact file size and
  150.                   creation date.
  151.  
  152.        ALT-S .... Switch communication parameters.  The program starts
  153.                   with these default values: 1200 baud, No Parity, 8
  154.                   data bits, 1 stop bit.  Permissible values for the
  155.                   baud rate are: 300, 1200, 2400, 4800, or 9600.
  156.  
  157.        ALT-T .... Transmit a file using Xmodem protocol.  Communications
  158.                   parameters are automatically changed to/from 8 bit no
  159.                   parity.  CRC is used, if the remote system requests
  160.                   it.  Also, the TELINK protocol is used if the remote
  161.                   system supports it.  Using TELINK, it is possible to
  162.                   transfer up to 30 files at one time.  If the user
  163.                   wishes to perform a batch transfer, he must specify
  164.                   the names of the files to transfer using the DOS
  165.                   wildcard notation; for example, to transfer all files
  166.                   with the .PAS extension, when asked for the filename,
  167.                   respond with "*.PAS".  The first 30 files found
  168.                   matching the criterion will be transmitted.
  169.  
  170.        ALT-U .... Used, time.  Report the time used since the the last
  171.                   ALT-F command and the last dial of the phone or the
  172.                   start of the program, whichever occured last.  Total
  173.                   elapsed time in hours, minutes and seconds, is
  174.                   reported.
  175.  
  176.        ALT-V .... View the contents of a file, uses the same style as
  177.                   MORE, the DOS utility.  Use the "End" key to stop the
  178.                   command.
  179.  
  180.        ALT-W .... Clear the screen.
  181.  
  182.        ALT-X .... Terminate and return to DOS.  If other windows are
  183.                   open on the screen, this command will be deferred
  184.                   until all windows have been closed.
  185.  
  186.        ALT-Y .... Copy a file.  This procedure will copy any unprotected
  187.                   file.  Filenames must be fully specified.  No
  188.                   wildcards are allowed, ONLY the current drive and
  189.                   directory need not be specified.
  190.  
  191.        ALT-Z .... Toggle monitor mode on/off.  In monitor mode, all
  192.                   codes are shown so that the user may see exactly what
  193.                   is being sent by the host computer.  Control codes are
  194.                   shown with the ^ symbol preceding, i.e. ^[ is the ESC
  195.                   code, ^X is the CAN code, etc.  You must refer to an
  196.                   ASCII code chart for a complete list.
  197.  
  198.        ALT-9 .... Toggle the beeps ON/OFF.  Go into quiet mode or back
  199.                   to normal mode.  Does not change the playing of music,
  200.                   just the bell.
  201.  
  202.        ^PrtSc ... Toggle the printer ON/OFF.  Hold the 'Ctrl' key, then
  203.                   press the 'PrtSc' key.
  204.  
  205.  
  206.     The dialing management sub-section has a list of commands also:
  207.  
  208.         A = Add an entry to the dialing directory.
  209.         C = Change an entry in the dialing directory.
  210.         K = Kill an entry in the dialing directory, a sort of the 
  211.             directory is recommended after this option or the Add 
  212.             option.  
  213.         M = Dial a number not in the directory.  The user is prompted 
  214.             for new communications parameters.  
  215.         D = Dials a number from the directory, and automatically changes 
  216.             the communications parameters.  
  217.         S = Stop the modem, after it has dialed, but before it goes
  218.             online.  This allows you to dial another number when a 
  219.             previous number is busy, without waiting for the modem to 
  220.             timeout waiting for carrier.  
  221.         F = Display the next page of the directory.
  222.         B = Display the previous page of the directory.
  223.         Q = Quit, returns to the online screen.
  224.  
  225.     Note: When editing Phone Directory entries or Macro Key definitions, 
  226.           the program responds to the following editing keys as 
  227.           indicated:
  228.  
  229.           Backspace .... Delete character to the left of cursor.
  230.           Del .......... Delete character under the cursor.
  231.           End .......... Move the cursor to the end of the field.
  232.           ^End ......... Erase from the current cursor position to the
  233.                          end of the field.  The ^ symbol indicates that
  234.                          you must hold the 'Ctrl' key, then press the
  235.                          'End' key.
  236.           Home ......... Move the cursor to the start of the field.
  237.           Ins .......... Toggle between insert and overwrite mode.
  238.                          When in insert mode the cursor becomes fat.
  239.           Left Arrow ... Move the cursor to the left 1 position.
  240.           Right Arrow .. Move the cursor to the right 1 position.
  241.           RETURN ....... Finish the current field and move to the next.
  242.  
  243.     There are several files associated with the system.  Here is a 
  244.     description of each: 
  245.  
  246.        GT12.COM ....... Absolute program.  The one to execute.
  247.        GT12.DOC ....... This file.
  248.        GT.DIR ......... The phone directory, data file.
  249.        GT.KEY ......... Macro key definitions, data file.
  250.        GT.CNF ......... The configuration, data file.
  251.  
  252.        In position 1-3 of each record in the configuration file is a 
  253.        code to identify a parameter.  After the "=", the value of the 
  254.        parameter appears.  The codes are: 
  255.  
  256.              CM=  COM port number, 1 or 2.
  257.              ST=  Number of Stopbits.
  258.              DA=  Number of Databits.
  259.              PA=  Parity. 0=None,1=Even,2=Odd
  260.              BA=  Baud Rate. 300,1200,2400,4800, or 9600.
  261.              WA=  Number of ticks in 1/3 of a second, at 4.77 MHz clock.  
  262.                   The value should be larger if the clock in your CPU is 
  263.                   faster.  The units for the value is milleseconds, and
  264.                   it is used for waiting, hence the WA=.  For example, 
  265.                   if your CPU runs a twice the 4.77 MHz rate, then the 
  266.                   value of WA= should be 666.  
  267.              PR=  Dialing Pre String.
  268.              PO=  Dialing Post String, use the | character where a 
  269.                   RETURN is needed.  
  270.              MI=  Modem initialization string.  The default value, AT 
  271.                   S0=0|, will cause the modem not to answer the phone.  
  272.                   Again, use the | character where a RETURN is needed.  
  273.              SY=  Modem command string to turn the speaker ON.
  274.              SN=  Modem command string to turn the speaker OFF.
  275.              RT=  After carrier timeout has occured, this is the time 
  276.                   between redials, in seconds.  
  277.              FC=  Forced Carrier.  Some modems force carrier even when a 
  278.                   call is not in progress, if this is the case, set this 
  279.                   parameter to TRUE.  
  280.              CT=  Timeout time for carrier to appear, in seconds.
  281.              DP=  Directory PATH.  This variable tells the program where 
  282.                   to look for the phone directory.  This param is 
  283.                   provided mainly for people who wish to put the dialing 
  284.                   directory on a RAM-disk.  
  285.              XO=  The decimal value of the XON character.  Used to 
  286.                   control data flow.  Starts data flow after XOFF has
  287.                   been issued.  
  288.              XF=  The decimal value of the XOFF character.  Used to 
  289.                   control data flow.  Stops data flow when issued.  
  290.                   Helps insure that buffer overflow does not occur.  
  291.              VT=  If TRUE, turns on ANSI emulation, using ANSI escape 
  292.                   codes.  If ANSI emulation is requested, music will not 
  293.                   be played, and will show on the screen as text.  This 
  294.                   happens because of a conflicit between the full ANSI 
  295.                   definition and the musical notes.  
  296.              LF=  Auto Linefeed mode.  If TRUE, then a linefeed will be
  297.                   automatically supplied whenever a Carriage Return is 
  298.                   recieved.  
  299.              FG=  The default foreground color number.  Any one of the 
  300.                   16 values in the table below.  
  301.              BG=  The default background color number.  Any one of the 
  302.                   DARK shades, 0-7, from the table below.  
  303.              CC=  The comment character used with the macro keys.  MX=  
  304.                   Number of Xmodem buffers to allocate. 4 - 255 are the 
  305.                   legal values.  A smaller number should be used on 
  306.                   systems with only 128k, larger values can be used if 
  307.                   more memory is available.  Each buffer takes 128 
  308.                   bytes.  
  309.              * =  Comment lines.
  310.  
  311.        Note: these entries may either be changed via the ALT-I command, 
  312.              or with any text editor that produces standard ASCII files, 
  313.              such as EDLIN.  
  314.  
  315.        For Example:   CM=1             |
  316.                       ST=1             |
  317.                       DA=8             |
  318.                       PA=0             |
  319.                       BA=1200          |
  320.                       WA=333           |
  321.                       PR=ATDT          |
  322.                       PO=|             |
  323.                       MI=AT S0=0|      |
  324.                       SY=AT M1|        |
  325.                       SN=AT M0|        |
  326.                       RT=60            |     The DEFAULT defaults!
  327.                       FC=FALSE         |
  328.                       CT=35            |
  329.                       DP=A:\           |
  330.                       XO=17            |
  331.                       XF=19            |
  332.                       VT=FALSE         |
  333.                       LF=FALSE         |
  334.                       FG=15            |
  335.                       BG=0             |
  336.                       CC=;             |
  337.                       XT=FALSE         |
  338.                       MX=64            |
  339.  
  340.       Color Number Table:
  341.  
  342.       Dark Colors               Light Colors
  343.       -----------               ------------
  344.        0 : Black                 8 : Dark Gray
  345.        1 : Blue                  9 : Light Blue
  346.        2 : Green                10 : Light Green
  347.        3 : Cyan                 11 : Light Cyan
  348.        4 : Red                  12 : Light Red
  349.        5 : Magenta              13 : Light Magenta
  350.        6 : Brown                14 : Yellow
  351.        7 : Light Gray           15 : White
  352.  
  353.  
  354.  
  355.     If the program is used without a modem, using a direct cable
  356.     connection, all the dialing and modem control strings in the config 
  357.     file should be set to empty strings, for example the line with the 
  358.     MI parameter should read: "MI=".  Also, when using a direct cable 
  359.     connection, the FC parameter should be set to TRUE.  
  360.  
  361.     The program has been written to use Hayes compatible commands with 
  362.     the modem.  Because the program controls the modem via the DTR 
  363.     signal, Data Terminal Ready, the cable between the computer and 
  364.     modem must provide a connection for pin 20 and the modem should have 
  365.     the internal switches set so that the DTR signal is monitored.
  366.  
  367.     The program uses the Carrier Detect signal from the modem to detect 
  368.     when a call has been connected and when to stop redialing, for this 
  369.     reason the modem should have it's switches set so that the Carrier 
  370.     Detect signal is ONLY sent when present on the phone line.  If this 
  371.     is not possible, set the FC= parameter, to TRUE.  
  372.  
  373.     There are a number of status indicators that can appear in line 25 
  374.     of the screen: 
  375.                  * .... Capture mode is on.
  376.                  W .... Capture mode is about to run out of memory.
  377.                  ^ .... Caps Lock is on. The ^ will show as the
  378.                         Up-Arrow on the screen.
  379.                  # .... Num Lock is on.
  380.                  Q .... Beeps are off.
  381.                  H .... Half-duplex is on.
  382.  
  383.  
  384.     Received Character Processing - ANSI Emulation Mode.
  385.     ----------------------------------------------------
  386.     Cursor Up .................................. ESC [ Pn A
  387.     Cursor Down ................................ ESC [ Pn B
  388.     Cursor Forward ............................. ESC [ Pn C
  389.     Cursor Backward ............................ ESC [ Pn D
  390.     Cursor Position ............................ ESC [ Pl ; Pc H
  391.     Cursor Position (Home) ..................... ESC [ H
  392.     Horizontal and Vertical Position ........... ESC [ Pl ; Pc f
  393.     Horizontal and Vertical Position (Home) .... ESC [ f
  394.     Set Scrolling Region ....................... ESC [ Pt ; Pb r
  395.     Index ...................................... ESC D
  396.     Reverse Index .............................. ESC M
  397.     Reverse Linefeed ........................... ESC I
  398.     Next Line .................................. ESC E
  399.     Save Cursor ................................ ESC 7
  400.     Restore Cursor ............................. ESC 8
  401.     Cursor Key Mode Set ........................ ESC [ ? 1 h
  402.                                               or ESC =
  403.     Cursor Key Mode Reset ...................... ESC [ ? 1 l
  404.                                               or ESC >
  405.     Select US Character Set .................... ESC ( B
  406.     Select Line Drawing Character Set .......... ESC ( 0
  407.     Turn Off Character Attributes .............. ESC [ m
  408.     Selects Bold Characters .................... ESC [ 1 m
  409.     Selects Underlined Characters .............. ESC [ 4 m
  410.     Selects Blinking Characters ................ ESC [ 5 m
  411.     Selects Reverse Video Characters ........... ESC [ 7 m
  412.     Set Horizontal Tab Stop .................... ESC H
  413.     Clear A Horizontal Tab Stop ................ ESC [ g
  414.     Clear All Horizontal Tab Stops ............. ESC [ 3 g
  415.     Erase From Cursor To End Of Line ........... ESC [ K
  416.     Erase From Beginning Of Line To Cursor ..... ESC [ 1 K
  417.     Erase Complete Line ........................ ESC [ 2 K
  418.     Erase From Cursor To End Of Screen ......... ESC [ J
  419.     Erase From Beginning Of Screen To Cursor ... ESC [ 1 J
  420.     Erase Complete Display ..................... ESC [ 2 J
  421.     Delete Character At Cursor ................. ESC [ Pn P
  422.     Insert Line At Cursor ...................... ESC [ Pn L
  423.     Delete Line At Cursor ...................... ESC [ Pn M
  424.     Select Insert Mode ......................... ESC [ 4 h
  425.     Reset Insert Mode .......................... ESC [ 4 l
  426.     Turn Printer On ............................ ESC [ ? 5 i
  427.     Turn Printer Off ........................... ESC [ ? 4 i
  428.     Turn Printer Controller On ................. ESC [ 5 i
  429.     Turn Printer Controller Off ................ ESC [ 4 i
  430.     Print Screen ............................... ESC [ i
  431.     Request Cursor Position Report ............. ESC [ 6 n
  432.            Response: Cursor Position Report .... ESC [ Pl ; Pc R
  433.     Request ID ................................. ESC [ c
  434.            Response: Terminal Type ............. ESC [ ? 6 c
  435.  
  436.     Notes: ESC is used to represent the escape character, decimal 27.  
  437.            Pn represents a variable numeric parameter, the parameter is 
  438.            a decimal number transmitted to the program by using ASCII 
  439.            characters.  Pl represents the LINE, and Pc represents the 
  440.            COLUMN, these are numeric parameters sent using ASCII 
  441.            characters.  Pt represents the TOP LINE of a scrolling 
  442.            region, and Pb represents the BOTTOM LINE of a scrolling 
  443.            region, these are numeric parameters sent using ASCII 
  444.            characters.  The spaces shown are for readability, they are 
  445.            not sent by the Host.  
  446.  
  447.  
  448.     Transmitted Characters - ANSI Emulation Mode.
  449.     ---------------------------------------------
  450.     Function Keys .............................. User Programmable.
  451.     End ........................................ ESC O R
  452.     Ctrl-End ................................... ESC O S
  453.     Del ........................................ DEL
  454.     Ins ........................................ ESC O n
  455.     Home ....................................... ESC [ H
  456.     PgUp ....................................... ESC [ O r
  457.     PgDn ....................................... ESC [ O q
  458.     Shift-Tab .................................. ESC [ O x
  459.     Left Arrow ................Normal........... ESC [ C
  460.                                Keypad Mode...... ESC O C
  461.     Right Arrow ...............Normal........... ESC [ D
  462.                                Keypad Mode...... ESC O D
  463.     Up Arrow ..................Normal........... ESC [ A
  464.                                Keypad Mode...... ESC O A
  465.     Down Arrow ................Normal........... ESC [ B
  466.                                Keypad Mode...... ESC O B
  467.     Others ..................................... Standard Values.
  468.  
  469.     Note: The blanks are included for readability only.
  470.